﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yqd.Enm;

namespace Yqd.Models
{
    public class Yqd_SpecialSupervise
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int SuperviseID { get; set; }

        [DisplayName("督查单号")]
        [StringLength(50)]
        public string SNo { get; set; }

        public int TaskID { get; set; }

        [DisplayName("专项类型")]
        public 专项类型 TaskType { get; set; }

        [DisplayName("任务模板")]
        public int TemplateID { get; set; }

        [DisplayName("督查对象")]
        public string TemplateData { get; set; }

        [DisplayName("问题清单")]
        public string Standards { get; set; }

        [DisplayName("其他问题")]
        public string Problem { get; set; }

        [DisplayName("评价")]
        [StringLength(50)]
        public string Evaluate { get; set; }

        [DisplayName("督查办理状态")]
        public 任务状态 Status { get; set; }

        [DisplayName("照片视频地址")]
        [StringLength(500)]
        public string Photos { get; set; }

        [DisplayName("创建时间")]
        public DateTime Instime { get; set; }

        [DisplayName("创建者")]
        [StringLength(50)]
        public string EmployeeCode { get; set; }

        [DisplayName("创建者单位")]
        [StringLength(50)]
        public string UnitCode { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; } = false;
        /// <summary>
        /// 是否上传办结报告
        /// </summary>
        public int IsReport { get; set; } = 1;

        /// <summary>
        /// 是否提醒督办
        /// </summary>
        public bool IsFinish { get; set; } = false;
        /// <summary>
        /// 是否申请延期
        /// </summary>
        public bool IsDelay { get; set; } = false;

        /// <summary>
        /// 是否归档
        /// </summary>
        public bool IsArchive { get; set; } = false;
    }

}
